<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>CIops 自动化平台 </title>

    <!-- Bootstrap -->
    <link href="../static/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../static/css/font-awesome.min.css" rel="stylesheet">
    <!-- Animate.css -->
    <link href="https://colorlib.com/polygon/gentelella/css/animate.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../static/css/custom.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="/static/js/html5shiv.js"></script>
        <script src="/static/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body class="login">
    <div>
      <a class="hiddenanchor" id="signup"></a>
      <a class="hiddenanchor" id="signin"></a>

      <div class="login_wrapper">
        <div class="animate form login_form">
          <section class="login_content">
            <form role="form" action="/user/login" method="post">
              <h1>CIops 自动化装机平台</h1>
              <div>
                <input type="text" class="form-control" placeholder="请输入手机号码" name="phone" autofocus />
              </div>
              <div>
                <input type="password" class="form-control" placeholder="请输入您的密码" name="passwd" value="" />
              </div>
              <div>
                <input class="btn btn-default submit" type="submit" href="/user/login" value="登录"></input>
                <a class="reset_pass" href="#">忘记密码</a>
                  {% if result %}
                        {% if result['message'] %}
                            <div class="alert alert-danger">
                                {{ result['message'] }}
                            </div>
                        {% endif %}
                    {% endif %}

              </div>

              <div class="clearfix"></div>

              <div class="separator">
                <p class="change_link">新的页面?
                  <a id="sig" href="/user/reg" class="to_register"> 注册新用户 </a>
                </p>

                <div class="clearfix"></div>
                <br />

                <div>
                  <h1><i class="fa fa-desktop"></i> Cobbler</h1>
                </div>
              </div>
            </form>
          </section>
        </div>
      </div>
    </div>
  </body>
</html>
